# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo02
# Description:
# Author:       98745
# Date:         2019/3/7
#-------------------------------------------------------------------------------

import re
m=re.match('python','i love python')
if m is not None:
    print(m.group())
print(m)

m=re.search('python','i love python')
if m is not None:
    print(m.group())
print(m)